<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%

	String path=request.getContextPath();
%>
<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>矾楼</title>

</head>

<body>
<jsp:include page="../common_sidebar.jsp"/>




<div class="content-wrap">
	<div class="main">
		<div class="container-fluid">
			<div class="row">
				<div class="col-lg-8 p-r-0 title-margin-right">
					<div class="page-header">
						<div class="page-title">
							<h1>Hello,
								<span>欢迎光临</span>
							</h1>
						</div>
					</div>
				</div>

				<!-- /# column -->
			</div>

			<section id="main-content">

				<div class="row clearfix">
					<div class="col-md-12 column">
						<table class="table table-hover table-striped">
							<thead>
							<tr>
								<th>
									编号
								</th>
								<th>
									芳名
								</th>
								<th>
									VIP
								</th>
								<th>
									预订价格
								</th>
								<th>
									状态
								</th>
								<th>
									时间段
								</th>
								<th>
									操作
								</th>
							</tr>
							</thead>
							<tbody>
							<c:forEach var="booking" items="${bookings}" varStatus="i">
								<tr class="">
									<td>
											${booking.id}
									</td>
									<td>
											${booking.girlName}
									</td>
									<td>
											${empty booking.userName ? "等待你的垂青":booking.userName}
									</td>
									<td>
											${booking.bookingPrice}
									</td>
									<td>
											${booking.getBookingStatusZh()}
									</td>
									<td>
											${booking.timeFrame}
									</td>
									<td>
										<c:set var="fanpaiurl" value="${pageContext.request.contextPath}/booking/love?loveid=${booking.id}"/>
										<c:set var="qiandanurl" value="${pageContext.request.contextPath}/booking/rob?loveid=${booking.id}"/>
										<c:choose>
											<c:when test="${booking.status==0}"><a href='${fanpaiurl}'>翻牌</a></c:when>
											<c:otherwise><a href='${qiandanurl}'>抢单</a></c:otherwise>
										</c:choose>

									</td>
								</tr>
							</c:forEach>



							</tbody>
						</table>
					</div>
				</div>


			</section>
		</div>
	</div>
</div>

<%@include file="../common_js.html"%>
</body>

</html>





